<%
	c.jsFiles.append('/script/login/settings.js')
%>
<div id="mysettings">
% if c.loginUser == None :
	<h1>请登录。</h1>
% else :
	<h1>欢迎，${c.loginUser.name}！</h1>
	<div>
		<div class="page_column_left_padding15">
			<div class="top"></div>
			<div class="content">
				<div>密码：<a id="inline" href="#dialog_changepass" rel="prettyPhoto"><img style="display:none;" alt="修改密码"></img>修改</a></div>
				<div id="dialog_changepass" class="hidden_example">
					<div id="form_changepass">
						<form>
							<div id="changepass_oldpass">
								<label>旧密码</label>
								<input type="password" name="oldpass" class="validate[required,funcCall[validateOldPass]]" id="input_oldpass"></input>
							</div>
							<div id="changepass_password">
								<label>新密码</label>
								<input type="password" name="newpass" class="validate[required,funcCall[validateNewPass]]" id="input_newpass"></input>
							</div>
							<div id="changepass_password">
								<label>确认密码</label>
								<input type="password" name="retype_pass" class="validate[required,funcCall[validateRetypePass]]" id="input_retype_pass"></input>
							</div>
							<div id="bottom_buttons" style="margin:0;padding:0;line-height:25px;">
								<a id="button_submit" href="javascript:settingsCtrl.processSubmit();">确认</a>
							</div>
						</form>
					</div>
				</div>
				<div>生日：
					% if c.loginUser.birthday != None :
						${c.loginUser.birthday.strftime('%Y-%m-%d')}
					% else :
						未知
					% endif
				</div>
				<div>邮箱：
					% if c.loginUser.email != None :
						${c.loginUser.email}
					% else :
						未绑定
					% endif
				</div>
				<div>手机：
					% if c.loginUser.mobile != None :
						${c.loginUser.mobile[:3] + '****' + c.loginUser.mobile[7:]}
					% else :
						未绑定
					% endif
				</div>
			</div>
			<div class="bottom"></div>
		</div>
		<div class="page_column_right_padding_left30"></div>
	</div>
% endif
</div>